﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RaytracerLib.MathLib;
using TomanuExtensions;
using System.Diagnostics;

namespace RaytracerLib.UVMappers
{
    public class PlaneUVMapper : UVMapper
    {
        public override Vector2 Map(Vector3 a_uvw)
        {
            Debug.Assert(a_uvw.Y.IsAlmostRelativeEquals(0));
            return new Vector2(a_uvw.X, a_uvw.Z);
        }

        public override UVMappingMethod Method
        {
            get
            {
                return UVMappingMethod.Plane;
            }
        }
    }
}
